package com.gitee.sqlrest.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel("账号登陆请求")
public class UserLoginRequest {

  @NotBlank(message = "username不能为空")
  @ApiModelProperty("账号")
  private String username;

  @NotBlank(message = "password不能为空")
  @ApiModelProperty("密码")
  private String password;
}
